﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using Interfaces;
using CustomControls;

namespace Reminder
{
    public class Reminder : IApplication
    {
        UserControl mainInterface;

        public Reminder()
        {
            
        }

        #region IApplication Members

        public IMiddleware Host
        {
            get;
            set;
        }

        public string Description
        {
            get { return "Location-based reminder application"; }
        }

        public string Author
        {
            get { return "Máté Cserna"; }
        }

        public string Version
        {
            get { return "0.1"; }
        }

        #endregion

        #region IModule Members

        public AlphaImage IconEnabled
        {
            get { return CustomControls.AlphaImage.CreateFromResource("Reminder.Resources.icon_enabled.png"); }
        }

        public AlphaImage IconDisabled
        {
            get { return CustomControls.AlphaImage.CreateFromResource("Reminder.Resources.icon_disabled.png"); }
        }

        public UserControl MainInterface
        {
            get { return mainInterface; }
        }

        public string Name
        {
            get { return "Reminder"; }
        }

        public void Initialize()
        {
            mainInterface = new ReminderControl(this);
        }

        public bool Sleep()
        {
            return true;
        }

        public bool Wake()
        {
            return true;
        }

        #endregion

        #region IDisposable Members

        public void Dispose()
        {
        }

        #endregion
    }
}
